﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class ShopInfoConfig : EntityTypeConfiguration<ShopInfo>
    {
        public ShopInfoConfig()
        {
            ToTable("Himall_Shops");
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Logo).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.SubDomains).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Theme).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.RefuseReason).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.CompanyName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.CompanyAddress).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.CompanyPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ContactsName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ContactsPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ContactsEmail).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BusinessLicenceNumber).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BusinessLicenceNumberPhoto).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.BusinessSphere).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.OrganizationCode).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.OrganizationCodePhoto).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.GeneralTaxpayerPhot).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BankAccountName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BankAccountNumber).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BankName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BankCode).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BankPhoto).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.TaxRegistrationCertificate).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.TaxpayerId).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.TaxRegistrationCertificatePhoto).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PayPhoto).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.PayRemark).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.SenderName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.SenderPhone).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.SenderAddress).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BusinessLicenseCert).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ProductCert).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.OtherCert).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.legalPerson).HasColumnType("varchar").HasMaxLength(50);
            Property(item => item.IDCard).HasColumnType("varchar").HasMaxLength(50);
            Property(item => item.IDCardUrl).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.IDCardUrl2).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.WeiXinNickName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.WeiXinAddress).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.WeiXinTrueName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.WeiXinOpenId).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.WeiXinImg).HasColumnType("varchar").HasMaxLength(200);          

        }
    }
}
